package org.koon;

import org.cheng.convert.json.JsonConvert;
import org.jadelyre.jade.JadeServer;
import org.jadelyre.jade.ServerConfig;
import org.koon.jadelyre.KoonEnde;
import org.koon.jadelyre.KoonHandler;
import org.koon.web.Router;

import java.io.IOException;

public class Koon {

    public static final JsonConvert JSON_CONVERT = JsonConvert.root();
    public static void start() throws IOException {
        ServerConfig serverConfig = new ServerConfig();
        serverConfig.setPort(5678);
        JadeServer jadeServer = new JadeServer(serverConfig, new KoonHandler(null),new KoonEnde());
        jadeServer.start();
    }

    public static void main(String[] args) throws IOException {
        start();
    }
}
